package com.vf.admin.utils.pay;


import com.vf.admin.utils.httpqingqiu.HttpPostUtils;
import com.vf.admin.utils.pay.ApiAplayWeChat.MD5;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Random;

public class CeShiZhiFu {


    public static void main(String[] args) throws Exception{

//        String ace = "parter=1684&type=992&value=1.00&orderid=1900035711&callbackurl=http://www.pmvectq.cn65eb6c7b98024321b2b4345020aeb038";
//        String jiami =  MD5.MD5Encode(ace);
//        ace = "parter=1684&type=992&value=1.00&orderid=1900035711&callbackurl=http://www.pmvectq.cn&device=wap&sign="+jiami;
//        String a= HttpPostUtils.getInstance().sendGet("http://pay.qq1997.cn:8081/Pay/GateWay"+ace,ace);
//        System.out.println("XXXXXXXXXXXXXXX"+a);
       String messge  = ZhiFuUtils.getInstance().getZhiFu("11414141414"+new Date().getTime(),0.1);

        BigDecimal bg = new BigDecimal("0");
        double f1 = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
        System.out.println(messge);
    }



}
